﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Dack_Web2.BUS;
namespace Dack_Web2
{
    public partial class CongTy : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (CurrentContext.IsLogged)
            {
                if (CongTyBUS.GetCongTy(CurrentContext.UserName) == null)
                {
                    Response.Redirect("~/Default.aspx");
                }
            }
            else
            {
                Response.Redirect("~/Login.aspx");                
            }
        }
    }
}